﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Customer/CustomerMaster.Master" AutoEventWireup="true" CodeBehind="Billing.aspx.cs" Inherits="OnlineSupermarketTuto.Views.Customer.Billing" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" runat="server">
    <div class ="container-fluid">
        <div class="row">

        </div>
        <div class="row">
            <div class ="col-md-5">
                <h3 class ="text-center" style ="color:teal;">商品选购</h3>
                <div class ="row">
                    <div class ="col">
                        <div class="mt-3">
                           <label for="" class="form-label text-success">商品名称</label>
                           <input type="text" placeholder="" autocomplete="off" class="form-control" runat="server" id="PnameTb"/>
                        </div>
                    </div>
                    <div class ="col">
                        <div class="mt-3">
                           <label for="" class="form-label text-success">价格</label>
                           <input type="text" placeholder="" autocomplete="off" class="form-control" runat="server" id="PriceTb"/>
                        </div>
                    </div>
                    <div class ="col">
                        <div class="mt-3">
                           <label for="" class="form-label text-success">数量</label>
                           <input type="text" placeholder="" autocomplete="off" class="form-control" runat="server" id="QtyTb"/>
                        </div>
                    </div>
                    <div class="row mt-3 mb-3">
                        <div class="col d-grid">
                            <asp:Button Text="加入购物车" id="AddToBillBtn" runat="server" class="btn-warning btn-block btn" OnClick="AddToBillBtn_Click"/>
                        </div>
                    </div>
                </div>
                <div class="row mt-5">
                    <h4 class ="text-center" style ="color:teal;">商品列表</h4>
                    <div class="col">
                        <asp:GridView ID="ProductList" runat="server" class="table" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateSelectButton="True" OnSelectedIndexChanged="CustomerList_SelectedIndexChanged">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="teal" Font-Bold="false" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
            <div class ="col-md-7">
                <h4 class ="text-center" style ="color:firebrick;">购物车</h4>
                    <div class="col">
                        <asp:GridView ID="ShoppingCartList" runat="server" class="table" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateSelectButton="True">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="SlateBlue" Font-Bold="false" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>

                        <div class="row">
                            <div class ="row">
                                <div class ="col-md-5">

                                </div>
                                <div class ="col-md-1">
                                    <asp:Label runat="server" ID="Label1" class="text-danger text-center">¥</asp:Label>
                                </div>
                                <div class ="col-md-6">
                                    <asp:Label runat="server" ID="GrdTotalTb" class="text-danger text-center"></asp:Label><br /> 
                                </div>
                            </div>
                            <div class ="row">
                                <asp:Button Text="结算" id="PrintBtn" runat="server" class="btn-warning btn-block btn" OnClick="PrintBtn_Click"/>
                            </div>                                                                                   
                        </div>
                    </div>
            </div>
        </div>
    </div>
</asp:Content>
